<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt"  uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <title><spring:message code="phone.user.center"></spring:message></title>
    <link href="${pageContext.request.contextPath }/phone/css/font/iconfont.css" rel="stylesheet" type="text/css" />
    <!--公共样式-->
    <link href="${pageContext.request.contextPath }/phone/css/public.css" rel="stylesheet" type="text/css" />
    <!--我的(个人中心)样式-->
    <link href="${pageContext.request.contextPath }/phone/css/mine.css" rel="stylesheet" type="text/css" />
</head>

<body>
<!--头部 begin-->
<header class="page_topbar">
    <div class="title"><spring:message code="phone.user.center"></spring:message></div>
</header>
<!--头部 end-->
<div class="content" style="padding-bottom:80px;">
    <div class="percen-top">
        <div class="percen-top-picbox">
            <div class="per-top-pic">
	           	<a href="${pageContext.request.contextPath }/api/member/userInfomation">
	           		<img src="${pageContext.request.contextPath }/upload/${member.mImg }">
	           	</a>
            </div>
            <p>${member.mNickname }<c:if test="${member.mVip==1 }"><img src="${pageContext.request.contextPath }/phone/img/vip_icon.png"></c:if></p>
        </div>
    </div>
    <ul class="minelist">
        <li onclick="window.location.href='${pageContext.request.contextPath }/api/member/modifyPassword'"><spring:message code="member.changePassword"></spring:message><i class="Hui-iconfont">&#xe63d;</i><div class="clearf"></div></li>
        <li onclick="window.location.href='${pageContext.request.contextPath }/api/shoppingcart/viewshoppingcart'"><spring:message code="member.myShoppingCart"></spring:message><i class="Hui-iconfont">&#xe63d;</i><div class="clearf"></div></li>
        <li onclick="window.location.href='${pageContext.request.contextPath }/api/orders/orderslist'"><spring:message code="member.myOrder"></spring:message><i class="Hui-iconfont">&#xe63d;</i><div class="clearf"></div></li>
        <li onclick="window.location.href='${pageContext.request.contextPath }/api/address/addresslist'"><spring:message code="member.shippingAddress"></spring:message><i class="Hui-iconfont">&#xe63d;</i><div class="clearf"></div></li>
        <li onclick="window.location.href='${pageContext.request.contextPath }/api/member/mySalesman'"><spring:message code="member.mySolicitor"></spring:message><i class="Hui-iconfont">&#xe63d;</i><div class="clearf"></div></li>
        <li onclick="window.location.href='${pageContext.request.contextPath }/api/toPhonePage/helpCenter'"><spring:message code="phone.user.help"></spring:message><i class="Hui-iconfont">&#xe63d;</i><div class="clearf"></div></li>
    </ul>
    <div onclick="exit();" class="editmine"><spring:message code="phone.user.exit"></spring:message></div>
    
</div>

<script src="${pageContext.request.contextPath }/phone/js/jquery-1.8.3.min.js"></script>
    <jsp:include page="../main/bottom.jsp" flush="true"><jsp:param name="bottom" value="5"/></jsp:include>
</body>
<script src="${pageContext.request.contextPath }/phone/js/code.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/lib/layer/layer_mobile/layer.js"></script>
<script type="text/javascript">
function exit(){
	 layer.open({
		    content: '<spring:message code="head.confirmExit"></spring:message>'
		    ,btn: ['<spring:message code="reciveAddress.confirm"></spring:message>', '<spring:message code="reciveAddress.cancel"></spring:message>']
		    ,yes: function(index){
		    	window.location.href="${pageContext.request.contextPath }/api/member/exit";
		      layer.close(index);
		    }
		  });

}
</script>
</html>